package cc.comac.mom.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipDevAppendService;
import cc.comac.mom.bean.EquipDevAppend;
import cc.comac.mom.bean.EquipDevAppendBean;
import cc.comac.mom.datahandlers.entity.EquipDevAppendDataHandler;
import cc.comac.mom.util.ResultBean;
@RestController
@Service
public class EquipDevAppendServiceImpl  implements EquipDevAppendService{

	@Autowired
	private EquipDevAppendDataHandler equipDevAppendDataHandler;
	@Override
	public ResultBean save(@RequestBody EquipDevAppend obj) {
		// TODO Auto-generated method stub
		return equipDevAppendDataHandler.save(obj);
	}

	@Override
	public ResultBean update(@RequestBody EquipDevAppend obj) {
		// TODO Auto-generated method stub
		return equipDevAppendDataHandler.update(obj);
	}

	@Override
	public ResultBean delete(@RequestBody EquipDevAppend obj) {
		// TODO Auto-generated method stub
		return equipDevAppendDataHandler.delete(obj);
	}


	@Override
	public EquipDevAppendBean selectByCondition(@RequestBody EquipDevAppend obj) {
		// TODO Auto-generated method stub
		return equipDevAppendDataHandler.selectByCondition(obj);
	}

	@Override
	public EquipDevAppend getById(@RequestBody EquipDevAppend obj) {
		// TODO Auto-generated method stub
		return equipDevAppendDataHandler.getById(obj.getInnerData().getId());
	}
	

}
